//
//  HLCategoryCollectionViewCell.swift
//  HLXiMaLaYa
//
//  Created by hulinhu on 2018/1/29.
//  Copyright © 2018年 hulinhu. All rights reserved.
//

import UIKit


fileprivate struct Metric {
    static let scale : CGFloat = 18 / 13
    static let column: CGFloat = 3
    static let margin : CGFloat = 0
}


class HLCategoryCollectionViewCell: UICollectionViewCell {

    @IBOutlet weak var imageV: UIImageView!
    @IBOutlet weak var titleLabel: UILabel!
    
    override func awakeFromNib() {
        super.awakeFromNib()
        self.backgroundColor = UIColor.white
    }

    static func itemMargin() -> CGFloat {
        
        return 0
    }
    
    static func itemSize() -> CGSize {
        
        let width = (kScreenWidth) / Metric.column
        let height = 40.0
        return CGSize(width: width, height: CGFloat(height))
    }
    
}
